

#import "MenuModel.h"

@implementation MenuModel

+ (instancetype)menuModelWithDict:(NSDictionary *)dict
{
    MenuModel *model = [[MenuModel alloc] init];
    [model setValuesForKeysWithDictionary:dict];
    return model;
}


- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        [self setValue:value forKey:@"sid"];
    }
}

@end
